package com.paco.study.cloud.user.dao;

import com.paco.study.cloud.user.model.Token;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.data.jpa.repository.JpaRepository;

@RefreshScope
public interface TokenDao extends JpaRepository<Token, Integer> {
    Token findByToken(String token);

    Token findByEmail(String email);
}
